const fs = require('fs');

let config = JSON.parse(fs.readFileSync('config.json', 'utf8'));
let myServer_url = config.myServer.url;
let myServer_port = config.myServer.port;
let email_user = config.email.user;
let email_pass = config.email.pass;
let mysql_host = config.mysql.host;
let mysql_port = config.mysql.port;
let mysql_passwd = config.mysql.passwd;
let redis_host = config.redis.host;
let redis_port = config.redis.port;
let redis_passwd = config.redis.passwd;
let code_prefix = "code_";
let varifySafeTime = config.varifySafeTime;


module.exports = {
                myServer_url,myServer_port,
                email_pass, email_user, 
                mysql_host, mysql_port,mysql_passwd,
                redis_host, redis_port, redis_passwd,
                 code_prefix,varifySafeTime
                }